package taiyuaneltyl.com.my_mvp.Utils;


import android.content.Context;

import com.xiasuhuei321.loadingdialog.view.LoadingDialog;

/**
 *  * Author：Elt on 2017/5/15 15:56
 */

public class DialogUtil {

//    public static SweetAlertDialog pDialog ;
    private static LoadingDialog ld;


    public static void LoadingDialog(Context context, String s){
        ld = new LoadingDialog(context);
        ld.setLoadingText("加载中...")
                .setSuccessText("加载成功")
                .setFailedText("加载失败")
                .show();
    }
    public static void LoadingDialogClose() {
        if(ld!=null){
            ld.close();
        }
    }
}
